package com.bistu.xiong.factory.model.api.account;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by XiongXiaoJun on 2017/12/15.
 */

public class RegisterModel implements BaseModel{
    private String username;
    private String password;
    private String phone;

    public RegisterModel(String username, String password, String phone) {
        this.username = username;
        this.password = password;
        this.phone = phone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Map<String,String> getMap(){
        Map<String,String> map = new HashMap<>();
        map.put("username",username);
        map.put("password",password);
        map.put("phone",phone);
        return map;
    }
}
